package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.controller.dto.ProcurementDto;
import com.example.demo.entity.Procurement;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: likew
 * @Date: 2022/4/17
 */
public interface ProcurementMapper extends BaseMapper<Procurement> {
    
    @Select("select count(id) count, classify from procurement GROUP BY classify")
    List<ProcurementDto> countClassify();
}
